/**
 * Created by dinstar on 2018/4/23.
 */
Ext.define('CMS.store.totalBill.totalBill', {
    extend: 'Ext.data.Store',


    alias: 'store.totalBillStore',

    requires:[
        'CMS.model.totalBill'
    ],
    /*
    Uncomment to use a specific model class */
    model: 'CMS.model.totalBill',


    proxy: {
        type: 'ajax',
        url : 'http://localhost:8080/totalBill/totalBill.do',
/*        reader : {
            type : 'json',
            root : 'data'
        }*/
    },
    root: {
        expanded: true
    },
    autoLoad: true,


    /*
    Fields can also be declared without a model class:
    fields: [
        {name: 'firstName', type: 'string'},
        {name: 'lastName',  type: 'string'},
        {name: 'age',       type: 'int'},
        {name: 'eyeColor',  type: 'string'}
    ]
    */

    /*
    Uncomment to specify data inline
    data : [
        {firstName: 'Ed',    lastName: 'Spencer'},
        {firstName: 'Tommy', lastName: 'Maintz'},
        {firstName: 'Aaron', lastName: 'Conran'}
    ]
    */
});